import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login/',
    method: 'post',
    data
  })
}

export function getPersonInfo() {
  return request({
    url: '/users/1/',
    method: 'get'
  })
}

export function patchPersonInfo(formData, header) {
  return request({
    url: '/users/1/',
    method: 'patch',
    data: formData,
    headers: header
  })
}
